<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'register_tea.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	  <link rel="stylesheet" type="text/css" href="/css/main.css">

  </head>
  
 <body>
<div id="header">

</div>

<div id="menu">
    <ul>
      

    </ul>

</div>

<div class="table">

    <form action="/teacher/doregister_tea.jsp" method="post">
        <table>
            <tr>
                <td>编号</td>
                <td><input type="text" name="id"><%
                    String iderror = (String) request.getAttribute("iderror");
                    if (iderror != null) out.print(iderror);
                %></td>
            </tr>
            <tr>
                <td>登录名</td>
                <td><input type="text" name="loginname">
     		<span><%
                 String namesame = (String) request.getAttribute("namesame");
                 if (namesame != null) out.print(namesame);
             %>

     		 </span></td>
            </tr>
            <tr>
                <td>教师姓名</td>
                <td><input type="text" name="realname"></td>
            </tr>
            <tr>
                <td>密码</td>
                <td><input type="password" name="password"></td>
            </tr>
            <tr>
                <td>确认密码</td>
                <td><input type="password" name="repassword">
     		<span><%
                 String pwdsame = (String) request.getAttribute("pwdsame");
                 if (pwdsame != null) out.print(pwdsame);
             %>

     		 </span></td>
            </tr>
            <tr>
                <td>性别</td>
                <td><input type="radio" name="sex" value="男" checked="checked">男
                    <input type="radio" name="sex" value="女">女
                </td>
            </tr>

            <tr>
                <td>所在院系</td>
                <td><select name="tea_department">
                    <option value="外国语学院">外国语学院
                    <option value="信息工程学院" selected="selected">信息工程学院
                    <option value="物理学院">物理学院
                    <option value="音乐学院">音乐学院
                </select></td>
            </tr>
            <tr>
                <td><input type="submit" value="提交"/></td>
                <td><input type="reset" value="重置"/></td>
            </tr>
        </table>
    </form>


</div>

<div id="copyright">
    <div align="center">
        <font face="Tahoma, Verdana" color="#ffffff">Copyright &copy; 首都师范大学版权所有<br>

            地址：北京市西三环北路105号 100048&nbsp;&nbsp;&nbsp;&nbsp; E-mail: </font><font face="Tahoma, Verdana">

    </font>
    </div>

</div>

</body>
</html>